local ls = require("luasnip")
local s = ls.snippet
local i = ls.insert_node
local fmt = require("luasnip.extras.fmt").fmt

ls.add_snippets("tex", {
  -- Mid
  s("mid", fmt("\\mid {} \\mid {}", {i(1), i(0)})),

  -- Sqrt
  s("srt", fmt("\\sqrt{{{}}} {}", {i(1), i(0)})),
})
